import java.awt.BorderLayout;
import java.awt.LayoutManager;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class DerFrame{
    
    JFrame frame = new JFrame();
    JPanel pan = new JPanel();
    DasPanel p1 = new DasPanel(1);
    DasPanel p2 = new DasPanel(2);
    DasPanel p3 = new DasPanel(3);
    
    public DerFrame(String text1, String consens, String text2){
        
        
        
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(2000, 2000);
        frame.setLocationRelativeTo(null);
        frame.setTitle("PlaggiChEcK");
        
        pan.setLayout((LayoutManager) new BoxLayout(pan, BoxLayout.LINE_AXIS));
        
        
        p1.setText(text1);
        p2.setText(consens);
        p3.setText(text2);
        pan.add(p1);
        pan.add(p2);
        pan.add(p3);
        
        frame.add(pan, BorderLayout.NORTH);
        frame.setVisible(true);
        
    }
 
}